home *** CD-ROM | disk | FTP | other *** search
- Command Name : Protect
-
- Function : Alter a file's protection bits
-
- Arguments : <file> [+|-] [<flags>]
-
- Location : C directory
-
- Every file has a set of `protection bits'. These tell your Amiga what
- properties the file has. The protection bits are :
-
- s - means that the file is a script. You don't have to Execute the file,
- just enter its name at a CLI prompt.
-
- a - means that the file is archived - a program called LHA is the most
- common archiver. It is a big file containing many programs that need to
- be decompressed onto another disk before use.
-
- r - readable. If this bit is set then the file can be read.
-
- w - if this bit is set then the file can be written to.
-
- e - this bit means executable. If a program is a text file it cannot be run
- so this bit is not set. A CLI command is executable so this bit is set.
-
- d - deletable. You can make a file protected from deletion by removing this
- flag.
-
- The status of these flags can be seen by Listing a file. To add a
- protection bit use the + argument or to remove one use the - argument.
-
- Examples
-
- Protect Textfile -d
-
- Sets the deletion bit of Textfile to 0, meaning it cannot be deleted
-
- Protect Textfile +d
-
- Sets the deletion bit of Textfile to 1, so it can be deleted.
-